﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Light.Framework
{
    /// <summary>
    /// 1对多关系映射信息
    /// </summary>
    public class HasManyInfo
    {
        /// <summary>
        /// 1：n关联中 n的实体类型
        /// </summary>
        public Type Type { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        public string Table { get; set; }

        /// <summary>
        /// 外键列名
        /// </summary>
        public string ColumnKey { get; set; }

        /// <summary>
        /// 属性名
        /// </summary>
        public string PropertyName { get; set; }

        /// <summary>
        /// 表别名
        /// </summary>
        public string Alias { get; set; }
    }
}
